<?php defined('SYSPATH') or die('No direct script access.');

	class Controller_ReportConfig extends Controller{
		
		public function action_index(){
			
			$tab_actions = array();
			$tab_actions[] = array("url"=>"/diastole/reportconfig/comments","text"=>"Comentarios");
			$tab_actions[] = array("url"=>"/diastole/reportconfig/conclusions","text"=>"Conclusiones");
			
			//Tabs creation
			$report_tabs = View::factory("components/tabs");
			$report_tabs->actions = $tab_actions;
									
			$report_view = View::factory("page");
			$report_view->page_title = "Informes";
			$report_view->page_icon = "media/img/layout/conclusion32.png";
			$report_view->page_content = $report_tabs->render();
									
			$this->request->response = $report_view->render();	
		}
		
		public function action_comments(){
			$this->request->response = Request::factory("comment")->execute()->response;
		}
		
		public function action_conclusions(){
			$this->request->response = Request::factory("conclusion")->execute()->response;
		}
		
		
	}
?>
